js:
var d = [];
const 分类颜色 = "#19B89D";
let page = MY_PAGE;
let dlei = getMyVar("yurl", "fl");
if (page == 1) {
    let biao = {
        "设置": {
            pic: "https://hikerfans.com/tubiao/q/60.png",
            url: $("hiker://empty#noRecordHistory##noHistory##noRefresh#").rule(() => {
                require(config.依赖);
                she();
            }),
        },
        "历史": {
            pic: "https://hikerfans.com/tubiao/q/33.png",
            url: "hiker://history",
        },
        "收藏": {
            pic: "https://hikerfans.com/tubiao/q/38.png",
            url: "hiker://collection",
        },
        "搜书": {
            pic: "https://hikerfans.com/tubiao/q/13.png",
            url: $("hiker://empty#noRecordHistory##noHistory#fypage").rule(() => {
                require(config.依赖);
                yso()
            }),
        },
        "搜迹": {
            pic: "https://hikerfans.com/tubiao/q/18.png",
            url: $("#noLoading#").lazyRule(() => {
                if (getMyVar("dxx", "off") == "on") {
                    deleteItemByCls("su_id");
                    putMyVar("dxx", "off");
                } else {
                    try {
                        eval("var sojl = " + readFile("hiker://files/cache/Yue/sojl.js"), 0);
                    } catch (e) {
                        var sojl = "";
                    }
                    if (sojl !== "") {
                        titls = sojl.map(li => {
                            return {
                                title: "‘‘’’<small>" + li + "</small>",
                                url: li + $("#noLoading#").lazyRule(() => {
                                    require(config.依赖);
                                    return sourl()
                                }),
                                col_type: "flex_button",
                                extra: {
                                    cls: "su_id"
                                }
                            }
                        });
                    } else {
                        titls = [{
                            title: "‘‘’’<small>没有搜索记录</small>",
                            url: "hiker://empty",
                            col_type: "text_center_1",
                            extra: {
                                cls: "su_id",
                                lineVisible: false
                            }
                        }]
                    };
                    addItemAfter("sujl_id", titls);
                    putMyVar("dxx", "on");
                };
                return "hiker://empty"
            }),
        },
    };
    let titl = Object.keys(biao);
    let urb = Object.values(biao);
    for (let i in titl) {
        let extra = titl[i] == "搜迹" ? {
            id: "sujl_id",
            longClick: [{
                title: "清除记录",
                js: $.toString(() => {
                    deleteFile("hiker://files/cache/Yue/sojl.js");
                    deleteItemByCls("su_id");
                    clearMyVar("dxx");
                    return "hiker://empty";
                })
            }]
        } : "";
        d.push({
            title: '‘‘’’<b>' + titl[i] + "</b>",
            pic: urb[i].pic,
            url: urb[i].url,
            col_type: "icon_5",
            extra: extra,
        })
    };

    d.push({
        title: "搜索",
        desc: "可 以 少 字 ，不 可 错 字 ！",
        url: $.toString(() => {
            putMyVar("Mysou", input);
            if (getMyVar("Mysou")) {
                return input + $("#noLoading#").lazyRule(() => {
                    require(config.依赖);
                    return sourl()
                });
            } else {
                return "toast://请输入关键字";
            }
        }),
        col_type: "input",
    });
    d.push({
        col_type: "line_blank"
    })
    let urls = {
        "分类": {
            pic: "https://hikerfans.com/tubiao/q/167.png",
            url: "fl",
        },
        "排行": {
            pic: "https://hikerfans.com/tubiao/q/168.png",
            url: "ph",
        },
        "榜单": {
            pic: "https://hikerfans.com/tubiao/q/169.png",
            url: "bd",
        },
    };
    let title = Object.keys(urls);
    let url = Object.values(urls);

    for (let i in title) {
        d.push({
            title: dlei == url[i].url ? '<b><font color="#FA7298">' + title[i] + "</font></b>" : title[i],
            pic: url[i].pic,
            url: $(url[i].url + "#noLoading#").lazyRule(() => {
                putMyVar("yurl", input);
                refreshPage(false);
                return "hiker://empty";
            }),
            extra: i == 0 ? {
                longClick: [{
                    title: getItem("shu", "0") == "1" ? "切换首页1" : "切换首页2",
                    js: $.toString(() => {
                        if (getItem("shu", "0") == "1") {
                            clearItem("shu");
                        } else {
                            setItem("shu", "1");
                        };
                        refreshPage(false);
                        return "toast://切换成功";
                    })
                }]
            } : "",
            col_type: "icon_small_3",
        })
    };
};
if (dlei == "ph") {
    //排行
    if (getItem("shu", "0") == "0") {
        let 排行 = getMyVar("uu", "1");
        if (page == 1) {
            let 排版 = ["男频排行", "女频排行", "出版排行"];
            let uu = ["1", "2", "3"];
            for (let i in uu) {
                d.push({
                    title: "‘‘’’<small>" + (排行 == uu[i] ? '<b><font color="#19B89D">' + 排版[i] + "</font></b>" : 排版[i]) + "</small>",
                    url: $(uu[i] + "#noLoading#").lazyRule(() => {
                        putMyVar("uu", input);
                        clearMyVar("urr");
                        refreshPage(false);
                        return "hiker://empty";
                    }),
                    col_type: "text_3"
                })
            }

            let tit = "";
            let urr = "";
            let ic = "";
            if (排行 == 1) {
                tit = ["热销榜", "完结榜", "免费榜"];
                urr = ["19258", "19265", "19272"];
                ic = ["sellhot_2eabf3c", "finished_c5aed54", "free_9cebdbf"];
            } else
            if (排行 == 2) {
                tit = ["热销榜", "完结榜", "免费榜"];
                urr = ["19261", "19264", "19269"];
                ic = ["sellhot_2eabf3c", "finished_c5aed54", "free_9cebdbf"];
            } else {
                tit = ["推荐榜", "畅销榜", "折扣榜"];
                urr = ["14374", "19268", "18474"];
                ic = ["edit_5d26714", "sellwell_e5a6252", "discount_ef803b2"];
            }
            let pi = "https://web.static.zhangyue01.com/fh/rank/static/i/icon_";
            for (let i in tit) {
                d.push({
                    title: getMyVar("urr", urr[0]) == urr[i] ? '<b><font color="#b8860b">' + tit[i] + "</font></b>" : tit[i],
                    img: pi + ic[i] + ".png",
                    url: $(urr[i] + "#noLoading#").lazyRule(() => {
                        putMyVar("urr", input);

                        refreshPage(false);
                        return "hiker://empty";
                    }),
                    col_type: "icon_small_3"
                })
            }
            d.push({
                col_type: "blank_block"
            }, {
                col_type: "line"
            });
        }
        let id = 排行 == 1 ? "19258" : 排行 == 2 ? "19261" : "14374"
        let uru = "https://m.zhangyue.com/rank/listMore/" + parseInt(getMyVar("urr", id)) + "?currentPage=" + page;
        let html = JSON.parse(fetch(uru, {
            timeout: 3000,
            headers: {
                "User-Agent": MOBILE_UA,
            },
        })).html;
        let list = pdfa(html, "body&&li")
        list.forEach(li => {
            let 名 = pdfh(li, "a&&data-name");
            let 作 = pdfh(li, "dd,0&&Text");
            let 介 = pdfh(li, "dd,1&&Text");
            d.push({
                title: "‘‘’’<b>" + 名 + '</b>\n<small><font color="#FA7298">作者：' + 作 + '</font></small>',
                desc: '‘‘’’<font color= "#274c5e">简介：' + 介 + '</font>',
                img: pd(li, "img&&data-src"),
                url: $("#noLoading#").lazyRule((input) => {
                    putMyVar("Mysou", input);
                    return $("hiker://empty#noRecordHistory##noHistory#fypage").rule(() => {
                        require(config.依赖);
                        yso()
                    });
                }, 名),
                extra: {
                    pageTitle: 名
                },
                col_type: "movie_1_vertical_pic"
            })
        })
    } else {
        d.push({
            col_type: "big_blank_block"
        }, {
            col_type: "line_blank"
        });
        let re = {
            retype: [{
                label: "畅销榜",
                value: "best_sell",
            }, {
                label: "人气榜",
                value: "popular"
            }, {
                label: "收藏榜",
                value: "coll"
            }, {
                label: "完本榜",
                value: "finish"
            }, {
                label: "字数榜",
                value: "word_number"
            }, {
                label: "新书榜",
                value: "new_book"
            }]
        };
        let pin = {
            pintype: [{
                label: "男频",
                value: "1",
            }, {
                label: "女频",
                value: "2"
            }]
        };
        let ba = {
            batype: [{
                label: "日榜",
                value: "day",
            }, {
                label: "周榜",
                value: "week"
            }, {
                label: "月榜",
                value: "month"
            }, {
                label: "总榜",
                value: "all"
            }]
        };
        let rank_type = getMyVar("rank_type", "best_sell");
        let first_type_id = getMyVar("first_type_id", "1");
        let date_type = getMyVar("date_type", "day");
        re.retype.forEach((item) => {
            d.push({
                title: '‘‘’’<small>' + (item.value == getMyVar("rank_type", "best_sell") ? '<b><font color="#19B89D">' + item.label + "</font></b>" : item.label) + '</small>',
                url: $("#noLoading#").lazyRule((value) => {
                    putMyVar("rank_type", value);
                    refreshPage(false);
                    return "hiker://empty";
                }, item.value),
                col_type: "scroll_button"
            })
        });
        d.push({
            col_type: "blank_block"
        })
        pin.pintype.forEach((item) => {
            d.push({
                title: '‘‘’’<small>' + (item.value == getMyVar("first_type_id", "1") ? '<b><font color="#19B89D">' + item.label + "</font></b>" : item.label) + '</small>',
                url: $("#noLoading#").lazyRule((value) => {
                    putMyVar("first_type_id", value);
                    refreshPage(false);
                    return "hiker://empty";
                }, item.value),
                col_type: "scroll_button"
            })
        });
        if (/popular|coll/.test(rank_type)) {
            d.push({
                col_type: "blank_block"
            })
            ba.batype.forEach((item) => {
                d.push({
                    title: '‘‘’’<small>' + (item.value == getMyVar("date_type", "day") ? '<b><font color="#19B89D">' + item.label + "</font></b>" : item.label) + '</small>',
                    url: $("#noLoading#").lazyRule((value) => {
                        putMyVar("date_type", value);
                        refreshPage(false);
                        return "hiker://empty";
                    }, item.value),
                    col_type: "scroll_button"
                })
            });
        }
        d.push({
            col_type: "blank_block"
        }, {
            col_type: "line"
        })
        var tsurl = "https://pre-api.tuishujun.com/api/listBookRank?rank_type=" + rank_type + "&date_type=" + date_type + "&first_type_id=" + first_type_id + "&second_type_id=0&page=1&pageSize=10";
    }
} else
if (dlei == "fl") {
    d.push({
        col_type: "big_blank_block"
    });
    if (getItem("shu", "0") == "0") {
        bookStoreIdUrl = "https://api.yousuu.com/api/bookStore";
        bookStoreIdHtml = fetchPC(bookStoreIdUrl, {
            timeout: 3000,
            headers: {
                "User-Agent": PC_UA,
            },
        });
        var menusJson1 = JSON.parse(bookStoreIdHtml);
        //获取列表
        const fl = [];
        fl.push(menusJson1.data);
        let init_cate = []
        for (let i = 0; i < 20; i++) {
            init_cate.push("0")
        }
        // 取四金刚缓存
        const cate_temp_json = getMyVar("html.fl", JSON.stringify(init_cate));
        const cate_temp = JSON.parse(cate_temp_json);

        // 取其他分类列表缓存
        const classify_json = getMyVar("html.classify", JSON.stringify(init_cate));
        const classify_temp = JSON.parse(classify_json);

        classId = getMyVar("classId", "-1");
        channel = getMyVar("channel", "-1");
        countWord = getMyVar("countWord", "-1");
        status = getMyVar("status", "-1");
        update = getMyVar("update", "-1");
        sortType = getMyVar("sortType", "");
        if (parseInt(page) == 1) {
            const menuHtmlJson = {
                titles: {
                    titles: "频道:",
                    classId: "分类:",
                    countWord: "字数:",
                    status: "状态:",
                    update: "更新:"
                },
                sortType: [{
                    label: "综合",
                    value: "",
                }, {
                    label: "字数",
                    value: "countWord"
                }, {
                    label: "评分",
                    value: "score"
                }, {
                    label: "评分人数",
                    value: "scorer"
                }],
                defaultOptionsData: {
                    channel: ["男频", "女频"],
                    classId: [],
                    countWord: ["10万字以下", "10万-30万", "30万-60万", "60万-100万", "100万-300万", "300万以上"],
                    status: ["连载中", "已完结", "已断更"],
                    update: ["三日内", "一月内", "半年内", "半年以上"]
                }
            };
            fl.forEach((category, index) => {
                //四大金刚的分类
                let sub_classify = [{
                    "classId": -1,
                    "className": menuHtmlJson.titles.classId,
                    "orderNum": 0,
                    "type": "-1"
                }];

                sub_classify = sub_classify.concat(category);
                sub_classify.forEach((item, key) => {
                    let title = item.className;
                    if (channel == item.type || channel == "-1" || item.type == "-1") {
                        d.push({
                            title: "‘‘’’<small>" + (key.toString() === cate_temp[index] ? '<b><font color=' + 分类颜色 + '>' + title + ' </font></b>' : title) + "</small>",
                            url: $("#noLoading#").lazyRule((params) => {
                                params.cate_temp[params.index] = params.key.toString()
                                putMyVar("html.fl", JSON.stringify(params.cate_temp))
                                putMyVar("classId", params.classId);
                                refreshPage(true)
                                return "hiker://empty"
                            }, {
                                cate_temp: cate_temp,
                                index: index,
                                key: key,
                                page: MY_PAGE,
                                classId: item.classId,
                            }),
                            col_type: 'scroll_button',
                        })
                    }
                })
                d.push({
                    col_type: "blank_block"
                });
            })
            d.push({
                col_type: "scroll_button",
                title: "‘‘’’<small>" + ("-1" == channel ? '<font color="' + 分类颜色 + '"><b>' + menuHtmlJson.titles.titles + '</b></font>' : menuHtmlJson.titles.titles) + "</small>",
                url: $("#noLoading#").lazyRule(() => {
                    putMyVar("channel", "-1");
                    clearMyVar("classId");
                    clearMyVar("html.fl");
                    refreshPage(false);
                    return "hiker://empty"
                }),
            })
            menuHtmlJson.defaultOptionsData.channel.forEach((x, index) => {
                d.push({
                    col_type: "scroll_button",
                    title: "‘‘’’<small>" + (index == channel ? '<font color="' + 分类颜色 + '"><b>' + x + '</b></font>' : x) + "</small>",
                    url: $("#noLoading#").lazyRule((index) => {
                        putMyVar("channel", index);
                        clearMyVar("html.fl");
                        clearMyVar("classId");
                        refreshPage(false);
                        return "hiker://empty"
                    }, index),
                })
            })
            d.push({
                col_type: "blank_block"
            });
            d.push({
                col_type: "scroll_button",
                title: "‘‘’’<small>" + ("-1" == countWord ? '<font color="' + 分类颜色 + '"><b>' + menuHtmlJson.titles.countWord + '</b></font>' : menuHtmlJson.titles.countWord) + "</small>",
                url: $("#noLoading#").lazyRule(() => {
                    putMyVar("countWord", "-1");
                    refreshPage(false);
                    return "hiker://empty"
                }),
            })
            menuHtmlJson.defaultOptionsData.countWord.forEach((x, index) => {
                d.push({
                    col_type: "scroll_button",
                    title: "‘‘’’<small>" + (index == countWord ? '<font color="' + 分类颜色 + '"><b>' + x + '</b></font>' : x) + "</small>",
                    url: $("#noLoading#").lazyRule((index) => {
                        putMyVar("countWord", index);
                        refreshPage(false);
                        return "hiker://empty"
                    }, index),
                })
            })
            d.push({
                col_type: "blank_block"
            });
            d.push({
                col_type: "scroll_button",
                title: "‘‘’’<small>" + ("-1" == status ? '<font color="' + 分类颜色 + '"><b>' + menuHtmlJson.titles.status + '</b></font>' : menuHtmlJson.titles.status) + "</small>",
                url: $("#noLoading#").lazyRule(() => {
                    putMyVar("status", "-1");
                    refreshPage(false);
                    return "hiker://empty"
                }),
            })
            menuHtmlJson.defaultOptionsData.status.forEach((x, index) => {
                d.push({
                    col_type: "scroll_button",
                    title: "‘‘’’<small>" + (index == status ? '<font color="' + 分类颜色 + '"><b>' + x + '</b></font>' : x) + "</small>",
                    url: $("#noLoading#").lazyRule((index) => {
                        putMyVar("status", index);
                        refreshPage(false);
                        return "hiker://empty"
                    }, index),
                })
            })
            d.push({
                col_type: "blank_block"
            });
            d.push({
                col_type: "scroll_button",
                title: "‘‘’’<small>" + ("-1" == update ? '<font color="' + 分类颜色 + '"><b>' + menuHtmlJson.titles.update + '</b></font>' : menuHtmlJson.titles.update) + "</small>",
                url: $("#noLoading#").lazyRule(() => {
                    putMyVar("update", "-1");
                    refreshPage(false);
                    return "hiker://empty"
                }),
            })
            menuHtmlJson.defaultOptionsData.update.forEach((x, index) => {
                d.push({
                    col_type: "scroll_button",
                    title: "‘‘’’<small>" + (index == update ? '<font color="' + 分类颜色 + '"><b>' + x + '</b></font>' : x) + "</small>",
                    url: $("#noLoading#").lazyRule((index) => {
                        putMyVar("update", index);
                        refreshPage(false);
                        return "hiker://empty"
                    }, index),
                })
            })
            d.push({
                col_type: "blank_block"
            });
            menuHtmlJson.sortType.forEach((x, index) => {
                d.push({
                    col_type: "scroll_button",
                    title: "‘‘’’<small>" + (x.value == sortType ? '<font color="' + 分类颜色 + '"><b>' + x.label + '</b></font>' : x.label) + "</small>",
                    url: $("#noLoading#").lazyRule((x) => {
                        putMyVar("sortType", x.value);
                        refreshPage(false);
                        return "hiker://empty"
                    }, x),
                })
            })
            d.push({
                col_type: "blank_block"
            }, {
                col_type: "line"
            });
        }
        let url = "https://api.yousuu.com/api/bookStore/books";
        if (channel !== "-1") {
            if (/\?/.test(url)) {
                url += "&";
            } else {
                url += "?";
            }
            url += "channel=" + channel;
        }
        if (classId !== "-1") {
            if (/\?/.test(url)) {
                url += "&";
            } else {
                url += "?";
            }
            url += "classId=" + classId;
        }
        if (countWord !== "-1") {
            if (/\?/.test(url)) {
                url += "&";
            } else {
                url += "?";
            }
            url += "countWord=" + countWord;
        }
        if (status !== "-1") {
            if (/\?/.test(url)) {
                url += "&";
            } else {
                url += "?";
            }
            url += "status=" + status;
        }
        if (update !== "-1") {
            if (/\?/.test(url)) {
                url += "&";
            } else {
                url += "?";
            }
            url += "update=" + update;
        }
        if (sortType !== "") {
            if (/\?/.test(url)) {
                url += "&";
            } else {
                url += "?";
            }
            url += "sort=" + sortType;
        }
        if (/\?/.test(url)) {
            url += "&";
        } else {
            url += "?";
        }
        time = Date.parse(new Date());
        url += "page=" + page + "&t=" + time;
        //log(url)
        try {
            var html = fetch(url, {
                method: 'GET',
                timeout: 3000,
                headers: {
                    "User-Agent": PC_UA,
                    'content-type': 'application/json; charst=UTF-8'
                },
            }) //我统一使用PC UA
            books = JSON.parse(html).data.books;
        } catch (e) {
            books = "";
        };
    } else {
        if (parseInt(page) == 1) {
try {
            let book = "https://pre-api.tuishujun.com/api/bookScreenCondition";
            let html = fetch(book, {
                timeout: 3000,
                headers: {
                    "User-Agent": PC_UA,
                },
            });

            let json = JSON.parse(html).data;

            let list = [];
            for (let j in json) {
                list.push(json[j].list)
            };
            for (let n in list) {
                let id = getMyVar("first_type_id", "0");
                let tit = json[n].title == "" ? "男频" : json[n].title + ":";
                let titl = "";
                let type = "";
                let lis = "";
                if (id == 1) {
                    titl = !/2|6|7|8/.test(n) ? tit : "";
                    type = !/2|6|7|8/.test(n) ? json[n].type : "";
                    lis = !/2|6|7|8/.test(n) ? list[n] : "";
                } else
                if (id == 2) {
                    titl = !/1|6|7|8/.test(n) ? tit : "";
                    type = !/1|6|7|8/.test(n) ? json[n].type : "";
                    lis = !/1|6|7|8/.test(n) ? list[n] : "";
                } else {
                    titl = !/6|7|8/.test(n) ? tit : "";
                    type = !/6|7|8/.test(n) ? json[n].type : "";
                    lis = !/6|7|8/.test(n) ? list[n] : "";
                };
                d.push({
                    col_type: 'blank_block'
                })
                for (let i in lis) {
                    let title = i == 0 ? titl : lis[i].title;
                    let typ = getMyVar(type, "0");
                    d.push({
                        title: '‘‘’’<small>' + (typ == lis[i].value ? '<b><font color="#19B89D">' + title + "</font></b>" : title) + '</small>',
                        url: $("#noLoading#").lazyRule((type, value) => {
                            putMyVar(type, value);
                            refreshPage(false);
                            return "hiker://empty";
                        }, type, lis[i].value),
                        col_type: 'scroll_button'
                    })
                }
            }

            let sort = {
                sortype: [{
                    label: "默认排序",
                    value: "hot_value",
                }, {
                    label: "高分优先",
                    value: "score"
                }, {
                    label: "数字优先",
                    value: "word_number"
                }, {
                    label: "评论数量",
                    value: "reply_number"
                }]
            };
            sort.sortype.forEach((item) => {
                d.push({
                    title: '‘‘’’<small>' + (item.value == getMyVar("sort_field", "hot_value") ? '<b><font color="#19B89D">' + item.label + "</font></b>" : item.label) + '</small>',
                    url: $("#noLoading#").lazyRule((value) => {
                        putMyVar("sort_field", value);
                        refreshPage(false);
                        return "hiker://empty";
                    }, item.value),
                    col_type: "scroll_button"
                })
            })
            d.push({
                col_type: "blank_block"
            }, {
                col_type: "line"
            });
} catch(e) {};
        };
        let first_type_id = getMyVar("first_type_id", "0");
        let second_type_id = getMyVar("second_type_id", "0");
        let source = getMyVar("source", "0");
        let word_number_type = getMyVar("word_number_type", "0");
        let update_type = getMyVar("update_type", "0");
        let sort_field = getMyVar("sort_field", "hot_value");

        var tsurl = "https://pre-api.tuishujun.com/api/listBookRepository?first_type_id=" + first_type_id + "&second_type_id=" + second_type_id + "&source=" + source + "&word_number_type=" + word_number_type + "&update_type=" + update_type + "&is_exclude_selected=0&is_can_read=0&is_filter_added_score=0&page=" + page + "&sort_field=" + sort_field + "&sort_value=desc";
    };
} else {
    /*
    var getRangeColors = function() {       
        return '#' + ('00000' + (Math.random() * 0x1000000 << 0).toString(16)).substr(-6);     
    };
    const 分类颜色 = getRangeColors();*/

    d.push({
        col_type: "big_blank_block"
    });
    let rankType = getMyVar("rankType", "/hotJumpBoard?t=");
    if (parseInt(MY_PAGE) === 1) {
        rankTypeList = [{
            label: "今日热门",
            value: "/hotJumpBoard?t=",
        }, {
            label: "呵护幼苗",
            value: "/weekJumpBoard?countWord=0&t=",
        }, {
            label: "龙粮种草",
            value: "/weekJumpBoard?countWord=1&t=",
        }, {
            label: "优秀新书",
            value: "/recomBook?t=",
        }, {
            label: "在读指数",
            value: "/readBoard?page=1&t=",
        }, {
            label: "男频周热",
            value: "/channelBooks?channel=male&t=",
        }, {
            label: "女频周热",
            value: "/channelBooks?channel=female&t=",
        }];
        rankTypeList.forEach((x, index) => {
            d.push({
                col_type: "scroll_button",
                title: x.value == rankType ? '““””<font color="' + 分类颜色 + '"><b>' + x.label + '</b></font>' : x.label,
                url: $("#noLoading#").lazyRule((x) => {
                    putMyVar("rankType", x.value);
                    refreshPage(false);
                    return "hiker://empty"
                }, x),
            })
        })
        d.push({
            col_type: "blank_block"
        }, {
            col_type: "line"
        });
    }
    time = Date.parse(new Date());
    url = "https://api.yousuu.com/api/home" + rankType + time;
    if (MY_PAGE !== 1) {
        url = url.replace("page=1", "page=" + MY_PAGE);
    }
    try {
        var html = fetch(url, {
            method: 'GET',
            timeout: 3000,
            headers: {
                "User-Agent": PC_UA,
                'content-type': 'application/json; charst=UTF-8'
            },
        }) //我统一使用PC UA
        //var list = JSON.parse(html);
        books = JSON.parse(html).data.books || JSON.parse(html).data;
    } catch (e) {
        books = "";
    };
};

if (/fl/.test(dlei) && getItem("shu", "0") == "0" || /bd/.test(dlei)) {
    try {
        books.forEach((list, index) => {
            var 名 = list.title;
            var img = list.cover;
            var url = $("#noLoading#").lazyRule((input) => {
                putMyVar("Mysou", input);
                return $("hiker://empty#noRecordHistory##noHistory#fypage").rule(() => {
                    require(config.依赖);
                    yso()
                });
            }, 名);
            statusStr = "";
            if (list.status == 1) {
                statusStr = '<font color="#1e90ff">已完结</font>';
            } else if (list.status == 0) {
                statusStr = '<font color="#00cc99">连载中</font>';
            } else {
                statusStr = '<font color="#b8860b">已断更</font>';
            }
            let 作 = list.author;
            let 字 = list.countWord / 10000 + "万字";
            let 状 = statusStr;
            let 评 = "评分：" + list.score + "(" + list.scorerCount + ")人";
            let 类1 = list.tags.join("\t|\t");
            let 类 = 类1 == "" ? "暂无" : 类1;
            d.push({
                title: "‘‘’’<b>" + 名 + '</b><br><small><font color="#FA7298">作者：' + 作 + "</font></small>",
                img: img,
                url: url,
                desc: '‘‘’’<font color= "#274c5e">状态：' + 字 + "</font>\t\t" + 状 + '<br><font color= "#274c5e">' + 评 + "<br>类型：" + 类 + "</font>",
                extra: {
                    pageTitle: 名
                },
                col_type: "movie_1_vertical_pic"
            });
        })
    } catch (e) {}
} else
if (/fl|ph/.test(dlei) && getItem("shu", "0") == "1") {
    let html = fetch(tsurl, {
        timeout: 3000,
        headers: {
            "User-Agent": PC_UA,
        },
    });
    let jsurl = JSON.parse(html).data.data;
    jsurl.forEach((item) => {
        let 状 = item.process_name;
        let 状态 = 状 == "完结" ? '<font color="#1e90ff">' + 状 + '</font>' : 状 == "连载" ? '<font color="#00cc99">' + 状 + '</font>' : '<font color="#b8860b">' + 状 + '</font>';
        d.push({
            title: '‘‘’’<b>' + item.title + '</b><br><small><font color="#FA7298">作者：' + item.author_nickname + '</font></small>',
            desc: '‘‘’’<font color= "#274c5e">状态：' + item.word_number_name + '</font>\t\t' + 状态 + '<br><font color= "#274c5e">评分：' + item.score + '\t\t•\t来源：' + item.source_name + '<br>类型：' + item.tag.join("\t|\t") + '</font>',
            img: item.cover,
            url: $("#noLoading#").lazyRule((input) => {
                putMyVar("Mysou", input);
                return $("hiker://empty#noRecordHistory##noHistory#fypage").rule(() => {
                    require(config.依赖);
                    yso()
                });
            }, item.title),
            col_type: "movie_1_vertical_pic",
            extra: {
                pageTitle: item.title
            },
        })
    });
}
setResult(d);
